//
//  DPTestsRunner.h
//  UITestingKit
//
//  Created by Ofri Wolfus on 26/02/07.
//  Copyright 2007 Ofri Wolfus. All rights reserved.
//

#import <Cocoa/Cocoa.h>


@interface DPTestsRunner : NSObject {
	NSMutableArray *modules;
	volatile int returnCode;
	BOOL verbose;
}

// Loads tests modules from the given paths.
// If a path is a directory, all modules it contains will be loaded.
- (void)loadModules:(NSArray *)paths;

// Runs all tests.
// This method returns only after all tests are finished.
- (int)runIgnoringExceptions:(BOOL)catchExceptions
			   stopOnFailure:(BOOL)stopOnFailedTests
				  log:(NSString **)log;

- (NSArray *)modules;

- (void)setVerbose:(BOOL)flag;

- (int)runUITests:(BOOL)printStackTrace;

- (BOOL)hasUnitTests;
- (BOOL)hasUITests;

@end
